package com.tnstart.beans
{
	import com.tnstart.beans.ControlCommandBean;
	
	import components.IconButton;

	public class ControlButton
	{
		
		private var _buttonRef:IconButton;		
		private var _sid:String;		
		private var _top:int;		
		private var _left:int;		
		private var _buttonFeekbackStatus:uint;		
		private var _upIcon:String;	
		private var _downIcon:String;
		private var _buttonDisplayName:String;		
		private var _skinClass:Class;		
		private var _commandByte:int;
		private var _controlCommandBean:ControlCommandBean;
		private var _clickFunc:Function;
		private var _mouseDownFunc:Function;
		private var _mouseUpFunc:Function;
	
		
		public function ControlButton(buttonRef:IconButton, id:String, top:int, left:int, 
									  buttonFeekbackStatus:uint, upIcon:String, downIcon:String,buttonDisplayName:String, 
									  skinClass:Class, commandByte:int, controlCommandBean:ControlCommandBean, clickFunc:Function, mouseDownFunc:Function, mouseUpFunc:Function)
		{
			this._buttonRef = buttonRef;
			this._sid = id;
			this._top = top;
			this._left = left;
			this._buttonFeekbackStatus = buttonFeekbackStatus;
			this._upIcon = upIcon;
			this._downIcon = downIcon;
			this._buttonDisplayName = buttonDisplayName;
			this._skinClass = skinClass;
			this._commandByte = commandByte;
			this._controlCommandBean = controlCommandBean;
			this._clickFunc = clickFunc;
			this._mouseDownFunc = mouseDownFunc;
			this._mouseUpFunc = mouseUpFunc;
			
		}
		
		public function get buttonRef():IconButton
		{
			return _buttonRef;
		}
		
		public function set buttonRef(value:IconButton):void
		{
			_buttonRef = value;
		}
		
		

		public function get top():int
		{
			return _top;
		}

		public function set top(value:int):void
		{
			_top = value;
		}

		public function get left():int
		{
			return _left;
		}

		public function set left(value:int):void
		{
			_left = value;
		}
		
		public function get buttonFeekbackStatus():uint
		{
			return _buttonFeekbackStatus;
		}
		
		public function set buttonFeekbackStatus(value:uint):void
		{
			_buttonFeekbackStatus = value;
		}
		
		
		public function get upIcon():String
		{
			return _upIcon;
		}

		public function set upIcon(value:String):void
		{
			_upIcon = value;
		}

		public function get buttonDisplayName():String
		{
			return _buttonDisplayName;
		}

		public function set buttonDisplayName(value:String):void
		{
			_buttonDisplayName = value;
		}

		public function get skinClass():Class
		{
			return _skinClass;
		}

		public function set skinClass(value:Class):void
		{
			_skinClass = value;
		}

		public function get commandByte():int
		{
			return _commandByte;
		}

		public function set commandByte(value:int):void
		{
			_commandByte = value;
		}

		public function get clickFunc():Function
		{
			return _clickFunc;
		}

		public function set clickFunc(value:Function):void
		{
			_clickFunc = value;
		}

		public function get mouseDownFunc():Function
		{
			return _mouseDownFunc;
		}

		public function set mouseDownFunc(value:Function):void
		{
			_mouseDownFunc = value;
		}

		public function get mouseUpFunc():Function
		{
			return _mouseUpFunc;
		}

		public function set mouseUpFunc(value:Function):void
		{
			_mouseUpFunc = value;
		}

		public function get downIcon():String
		{
			return _downIcon;
		}

		public function set downIcon(value:String):void
		{
			_downIcon = value;
		}

		public function get sid():String
		{
			return _sid;
		}

		public function set sid(value:String):void
		{
			_sid = value;
		}

		public function get controlCommandBean():ControlCommandBean
		{
			return _controlCommandBean;
		}

		public function set controlCommandBean(value:ControlCommandBean):void
		{
			_controlCommandBean = value;
		}


	}
}